package bhbt.controller.admin.member;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import bhbt.controller.core.BaseController;
import bhbt.model.Member;
import bhbt.service.MemberService;
import bhbt.taglib.pagetag.Pagination;
import bhbt.utils.MapUtil;
import bhbt.utils.SysConst;






/**
 * Created by Administrator on 2016/3/25.
 */
@Controller

public class MemberLevelListController extends BaseController {
    @Resource
    private MemberService memberService;
   
   
    @RequestMapping("admin/member/memberLevelList.shtml")
    public String list(HttpServletRequest request) throws Exception{
        HashMap formMap = getParameterMap(request);
         
        formMap.put("accountActive", "T");	//未激活
        formMap.put("where", "1=1 and a.level>0 ");	//未激活
        
        formMap.put("pagination.orderBy","activeDate desc");
        Pagination page = memberService.queryForPageList("memberForPage",formMap);
       
        request.setAttribute(Pagination.pageBeanName, page);
        
        
        
        return "admin/member/memberLevelList";
    }

    
}
